package models

import "gorm.io/gorm"

type Product struct {
	gorm.Model
	Name         string  `gorm:"size:200;not null"`
	Slug         string  `gorm:"size:200;uniqueIndex"`
	Description  string  `gorm:"type:text"`
	Price        float64 `gorm:"type:decimal(10,2);not null"`
	Stock        int     `gorm:"default:0"`
	IsPublished  bool    `gorm:"default:false"`
	CoverImage   string  `gorm:"size:255"`
	DetailImages string  `gorm:"type:text"`
	SEO          SEO     `gorm:"embedded"`
}
